package com.rjpacket.MyUEnjoy.fragments;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import com.rjpacket.MyUEnjoy.R;

/**
 * Created by aaa on 15-1-23.
 */
public class PhotoFragment extends Fragment {
    public PhotoFragment(){}
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.photo_fragment, container, false);

        ImageView imageView = (ImageView) view.findViewById(R.id.image_photo);

        Bundle bundle = getArguments();
        int position = bundle.getInt("position");
        if(position == 1){
            imageView.setImageResource(R.drawable.image1_1_1);
        }else{
            imageView.setImageResource(R.drawable.image1_1);
        }

        return view;
    }
}